package com.sxjh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxjh.entity.FactoryEntity;
import com.sxjh.entity.GoodsLocation;
import com.sxjh.entity.param.GoodsLocationFactoryParam;
import com.sxjh.entity.param.GoodsLocationListParam;
import com.sxjh.entity.result.GoodsLocationLoadResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 货物地点  Mapper 接口
 * </p>
 *
 * @author zixin
 * @since 2021-06-05
 */
public interface GoodsLocationMapper extends BaseMapper<GoodsLocation> {

  List<GoodsLocationLoadResult> allLoad(Integer id);

  List<GoodsLocationLoadResult> allUnLoad(Integer id);

  /**
   * 自定义分页
   *
   * @return
   */
  IPage<GoodsLocationListParam> queryPage(IPage page, @Param("param") GoodsLocationListParam param);

  /**
   * 自定义分页
   *
   * @return
   */
  IPage<FactoryEntity> queryPage2(IPage page, @Param("param") GoodsLocationFactoryParam param);

}
